package com.yk.neon.lib.util.base.page;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * @description:分页查询对象
 */
@ApiModel(value = "分页查询对象")
public class PageQuery implements Serializable {

    @ApiModelProperty(value = "页码")
    private int pageIndex;

    @ApiModelProperty(value = "每页页数")
    private int pageSize = 20;

    public PageQuery() {
    }

    public int getPageIndex() {
        return pageIndex;
    }

    public PageQuery(int pageIndex, int pageSize) {
        this.pageIndex = pageIndex;
        this.pageSize = pageSize;
    }

	public PageQuery(int pageIndex) {
		this.pageIndex = pageIndex;
	}

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
}
